//
//  CaiPiaoQiCiRequest.m
//  EasyToo
//
//  Created by linshengqin on 13-8-25.
//
//

#import "CaiPiaoQiCiRequest.h"

@implementation CaiPiaoQiCiRequest

- (id)initWithType:(NSString *)type Qici:(NSString *)qici Delegate:(id<ServerCommunicationDelegate>)delegate;
{
    self = [super init];
    if (self) {
        self.requestName = @"CaiPiaoQiCiRequest";

        self.type = type;
        self.qici = qici;
        self.delegate = delegate;
        
        [self.bodyJsonDict setObject:@"" forKey:@"request"];
        
        NSMutableDictionary *entry_dict = [[[NSMutableDictionary alloc] init] autorelease];
        [entry_dict setObject:self.qici forKey:@"issue"];
        [entry_dict setObject:self.type forKey:@"lType"];
        
        [self.bodyJsonDict setObject:entry_dict forKey:@"EntityList"];
        
        NSMutableDictionary *dict = [[[NSMutableDictionary alloc] init] autorelease];
        [dict setObject:@"72" forKey:@"ChannelID"];
        [dict setObject:@"3" forKey:@"Transaction"];
        [dict setObject:@"1" forKey:@"Ver"];
        
        [self.bodyJsonDict setObject:dict forKey:@"Head"];
        
        [self.headerJsonDict setObject:@"016004" forKey:@"TranCode"];
        [self buildJsonRequest];
    }
    return self;
}

- (void)dealloc
{
    self.type = nil;
    [super dealloc];
}

@end
